Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR adds the @SingletonTraits annotation, which we intend to be a replacement for the LayeredImageSingleton (and children) interfaces.

The benefits of switching to an annotation include:

  1. it can directly label the singleton class with all relevant information - we don't have to worry about inheriting traits
  2. it can be injected into 3rd party code

More details about the traits themselves can be found in the javadoc included as part of this PR

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 21, 2025
@graalvmbot graalvmbot force-pushed the tshull/GR-66791_singleton_traits branch from 41577fc to 00608fc Compare July 23, 2025 17:00
@graalvmbot graalvmbot merged commit 960db2e into master Jul 26, 2025
13 checks passed
@graalvmbot graalvmbot deleted the tshull/GR-66791_singleton_traits branch July 26, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants